
/* =========================================================
   MODERN PROFESSIONAL POWER PAGES THEME (CSS)
   Using OFFICIAL Power Pages component class names
   Components: buttons, lists, forms, titles, subtitles, paragraphs
   Includes animations + hover effects + smooth transitions
   ========================================================= */

/* ---------- GLOBAL RESET & BASE ---------- */
body, .page { font-family: "Segoe UI", Arial, sans-serif; background: #f5f7fa; color: #1a1a1a; line-height: 1.6; }

/* ---------- TITLES ---------- */
.page h1, .heading, .page-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: #003b82;
  margin-bottom: 20px;
  animation: slideFade 0.7s ease both;
}

.page h2, .subheading, .section-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: #0e5bae;
  margin-bottom: 14px;
}

.page p, .text, .description-text {
  font-size: 1rem;
  color: #333;
  margin-bottom: 18px;
}

/* -----------------------------------------------------------
   BUTTONS (Power Pages uses .btn, .btn-primary, .btn-default)
   ----------------------------------------------------------- */
.btn-primary {
  background: linear-gradient(135deg, #005dcc, #389cff);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #004099, #2c7dd6);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.20);
}
.btn-default,
.btn-secondary,
.btn {
  background: #fff;
  border: 2px solid #005dcc;
  padding: 12px 26px;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s ease;
}
.btn-default:hover,
.btn-secondary:hover,
.btn:hover {
  background: #005dcc;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* ---------- ENTITY LIST ---------- */
.entitylist {
  margin-top: 20px;
}
.entitylist .view-grid table tbody tr {
  background: #fff;
  transition: 0.3s ease;
}
.entitylist .view-grid table tbody tr:hover {
  background: #eaf3ff;
  transform: scale(1.01);
}
.entitylist .view-grid table th {
  background: #003b82;
  color: #fff;
  font-weight: 600;
}

/* ---------- ENTITY FORM (Basic/Advanced Form) ---------- */
/* =============================
   MODERNISATION DES FORMULAIRES
   ============================= */

.entityform {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  animation: fadeIn 0.6s ease;
}
.entityform legend {
  font-size: 1.4rem;
  font-weight: 600;
  color: #003b82;
}
.entityform .control label {
  font-weight: 600;
  color: #003b82;
  margin-bottom: 6px;
}
.entityform .control input,
.entityform .control select,
.entityform .control textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #c7d3e1;
  margin-bottom: 18px;
  transition: 0.3s ease;
  font-size: 1rem;
  background: #f8fafc;
  color: #1a1a1a;
}
.entityform .control input:focus,
.entityform .control select:focus,
.entityform .control textarea:focus {
  border-color: #005dcc;
  box-shadow: 0 0 6px rgba(0,93,204,0.3);
  outline: none;
}
.entityform .control input[disabled],
.entityform .control select[disabled],
.entityform .control textarea[disabled] {
  background: #e9ecef;
  color: #888;
  cursor: not-allowed;
}
.entityform .form-actions {
  margin-top: 24px;
  text-align: right;
}
.entityform .validation-summary-errors {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 18px;
  font-size: 1rem;
}
/* Animation d'apparition douce */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Accessibilité : focus visible */
.entityform .control input:focus-visible,
.entityform .control select:focus-visible,
.entityform .control textarea:focus-visible {
  outline: 2px solid #003b82;
  outline-offset: 2px;
}



/* ---------- CARDS (Power Pages: .card, .card-body) ---------- */
.card {
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.12);
}

.card-body {
  padding: 20px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideFade {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
